package com.fanpan26.source.concurrent;

import java.util.concurrent.CopyOnWriteArraySet;

/**
 * @author fanpan26
 */
public class CopyOnWriteArraySetSourceCode {
    public static void main(String[] args) {
        CopyOnWriteArraySet<String> set = new CopyOnWriteArraySet<>();

        set.add("a");
        set.add("b");
        set.contains("a");
        set.isEmpty();
        set.remove("a");
        set.size();
        set.toArray();
    }
}
